package cn.wyz.system.mapper;

import cn.wyz.system.domain.Role;
import cn.wyz.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WuyuZ
 * @since 2022-06-22
 */
public interface RoleMapper extends BaseMapper<Role> {

    void deleteRoleMenuByRoleId(Long RoleId);

    void deleteRolePermissionByRoleId(Long RoleId);

    /**
     * 批量新增菜单权限,是个复数的集合,要用collection
     * @param role
     */
    void insertRoleMenu(Role role);

    void insertRolePermission(Role role);
}
